package xiegd.study;

import org.junit.Test;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.Date;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/8/9 18:03
 */
public class UploadTest {
    public static void main(String[] args)throws Exception {
        File file = new File("C:\\Users\\admin\\Pictures\\20230609-095012.png");
        //BufferedImage image = ImageIO.read(file);
        BufferedImage read = ImageIO.read(file);
        System.out.println("file.length() = " + file.length());
        System.out.println("image.getData().getDataBuffer().getSize() = " + read.getData().getDataBuffer().getSize());

    }

    @Test
    public void mytest33(){
        Date date = new Date(1651312800000L);
        System.out.println("我是时间看看:" + date);
    }


}
